package com.heima.feign.client;

import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.user.pojos.ApUser;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;


@FeignClient("leadnews-user")
public interface ApUserFeignClient {
    //根据用户id查询用户信息
    @GetMapping("/api/v1/user/{id}")
    public ResponseResult<ApUser> findUserById(@PathVariable Integer id);


}
